package com.dragon.pear.modules.trade.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.dragon.common.spring.business.base.BaseCrudController;
import com.dragon.pear.modules.trade.domain.entity.TradeGoodsOrderEntity;
import com.dragon.pear.modules.trade.web.model.params.create.TradeGoodsOrderCreateParam;
import com.dragon.pear.modules.trade.web.model.params.update.TradeGoodsOrderUpdateParam;
import com.dragon.pear.modules.trade.web.model.params.search.TradeGoodsOrderSearchParam;
import com.dragon.pear.modules.trade.web.model.params.order.TradeGoodsOrderOrderParam;
import com.dragon.pear.modules.trade.web.model.results.TradeGoodsOrderResult;
import com.dragon.pear.modules.trade.dao.repository.TradeGoodsOrderRepository;
import com.dragon.pear.modules.trade.service.assistants.converters.TradeGoodsOrderConverter;
import com.dragon.pear.modules.trade.service.def.TradeGoodsOrderService;
import com.dragon.pear.modules.trade.web.api.TradeGoodsOrderApi;

/**
 * @author Chris Chan
 * Create on 2025-09-30 22:06
 * Use for: 订单 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("trade/goods/order")
public class TradeGoodsOrderController implements TradeGoodsOrderApi, BaseCrudController<
        TradeGoodsOrderEntity,
        TradeGoodsOrderCreateParam,
        TradeGoodsOrderUpdateParam,
        TradeGoodsOrderSearchParam,
        TradeGoodsOrderOrderParam,
        TradeGoodsOrderResult,
        TradeGoodsOrderRepository,
        TradeGoodsOrderConverter,
        TradeGoodsOrderService
        > {

    @Autowired
    TradeGoodsOrderService tradeGoodsOrderService;

    @Override
    public TradeGoodsOrderService getService() {
        return tradeGoodsOrderService;
    }
}